package com.eco;

import com.eco.util.SysConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;

@SpringBootApplication
public class Application {
    public static void main(String[] args) throws InterruptedException {
        File file= new File(SysConfig.UPLOAD_DIR);
        if(!file.exists()){
            //不存在就创建文件夹
            System.out.println("正在创建文件夹，等一会。。。");
            Thread.sleep(1000);
            file.mkdirs();
            System.out.println("静态资源文件夹创建成功。。。");
        }

        SpringApplication.run(Application.class, args);
    }
}
